<template>
  <div>

    <!--拍品列表-->
    <product-list :productList="productList" :release="proRelease" :fixedPrice="fixedPrice" :deal="deal"></product-list>

    <!--<pagination :total="total" v-on:listenToChildEvent="getPageIndex"></pagination>-->
  </div>
</template>

<script>
  import {getStatusMapByKey} from '../../../../assets/js/tools';
  import {getMyFollowers} from '../../../../assets/js/getData';
  export default {
    name: "followProduct",
    data(){
      return {
        productList:[],//当前显示拍品列表

        proRelease:null,//拍品状态：已发布
        deal:null,//拍品状态：已成交
        fixedPrice:null,//

      }
    },
    created(){
      this.proRelease = getStatusMapByKey('eProductStatus').release.val;
      this.deal = getStatusMapByKey('eProductStatus').deal.val;
      this.fixedPrice = getStatusMapByKey('eProductType').fixedPrice.val;

      this.getProductList();

    },
    methods:{
      //获取拍品列表
      getProductList(){
        getMyFollowers().then(res => {
          if(res.data.reqResult.code>0){
            console.log(res);
            this.productList = res.data.data.productList;
          }else {
            Toast(res.data.reqResult.msg);
          }
        })
      },

    }
  }
</script>

<style scoped>

</style>

